{
  "properties" : { },
  "id" : "faa3b73bac61458aa0c3ec7ad8044075",
  "script" : null,
  "groupId" : "b6112dd1a5fc4f9f98d1a3435a834c9b",
  "name" : "获取关联菜单",
  "createTime" : 1714063372341,
  "updateTime" : 1710949185897,
  "lock" : null,
  "createBy" : "管理员",
  "updateBy" : "管理员",
  "path" : "menu",
  "method" : "GET",
  "parameters" : [ {
    "name" : "roleId",
    "value" : "1",
    "description" : null,
    "required" : true,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ {
    "name" : "permission",
    "value" : "system:jsgl",
    "description" : "允许拥有该权限的访问",
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import com.gitee.fastmybatis.core.query.Query;

import 'com.wiwf.model.mapper.admin.dao.SysRoleMenuMapper' as sysRoleMenuMapper;

var query = new Query().eq("role_id", roleId);

return sysRoleMenuMapper.listBySpecifiedColumns(["menu_id"], query);